/*
 * =====================================================================================
 *
 *       Filename:  cl_lock_guard.cxx
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  12/22/2010 07:50:29 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ken), chen_kenz@emc.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include "cl_lock_guard.hxx"

namespace neo
{

CLLockGuard::CLLockGuard(CLLock& lk) 
  : m_lock(lk) 
{
  m_lock.lock();
}

CLLockGuard::~CLLockGuard() 
{
  m_lock.unLock();
}

} // neo
